package com.ccys.db.mapper;

import com.ccys.db.dto.userManagement.FavouritePrescriptionDetailDto;
import com.ccys.db.entity.TblFavouritePrescriptionDetail;
import com.ccys.db.vo.userManagement.FavouritePrescriptionDetailPageQueryVo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;

import java.util.List;

/**
* Created by Mybatis Generator on 2023/12/15
*/
public interface TblFavouritePrescriptionDetailMapper extends Mapper<TblFavouritePrescriptionDetail>, MySqlMapper<TblFavouritePrescriptionDetail> {
    List<FavouritePrescriptionDetailPageQueryVo> findPageFavouritePrescriptionDetail(FavouritePrescriptionDetailDto dto);

    Integer findCountByFavouriteIdAndByProductId(@Param("favouriteId") String favouriteId,@Param("medId") String medId);
}